﻿<Window x:Class="MassMailing.WPF.SendingStatusDialogBox"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="Sending Status" Height="422" Width="524" WindowStyle="ToolWindow" Topmost="True" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded">
	<DockPanel>
		<Grid Margin="0" DockPanel.Dock="Top" Height="60.88" Width="350" VerticalAlignment="Top" HorizontalAlignment="Left">
			<Grid.RowDefinitions>
				<RowDefinition Height="0.299*"/>
				<RowDefinition Height="0.299*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="100"/>
				<ColumnDefinition Width="75" MinWidth="69"/>
				<ColumnDefinition Width="100"/>
				<ColumnDefinition Width="75" MinWidth="236"/>
			</Grid.ColumnDefinitions>
			<Label x:Name="lblSent" Grid.Column="0" Content="Sent:" HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Top" Grid.Row="0"/>
			<TextBlock x:Name="txtSent" Grid.Column="1" Margin="5,5,0,0" TextWrapping="Wrap" Text="{Binding Path=Sent}" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="0"/>
			<Label x:Name="lblSuccess" Grid.Column="2" Content="Success:" HorizontalAlignment="Right" Margin="0,-0.017,5,0" VerticalAlignment="Top" Grid.Row="0"/>
			<TextBlock x:Name="txtSuccess" Grid.Column="3" Margin="5,4.983,0,0" TextWrapping="Wrap" Text="{Binding Path=Success}" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="0"/>
			<Label x:Name="lblTotal" Grid.Column="0" Content="Total Emails:" HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Top" Grid.Row="1"/>
			<TextBlock x:Name="txtTotal" Grid.Column="1" Margin="5,5,0,0" TextWrapping="Wrap" Text="{Binding Path=Total, Mode=OneWay}" VerticalAlignment="Top" Grid.Row="1"/>
			<Label x:Name="lblError" Grid.Column="2" Content="Error:" HorizontalAlignment="Right" Margin="0,-0.034,5,0" VerticalAlignment="Top" Grid.Row="1"/>
			<TextBlock x:Name="txtError" Grid.Column="3" Margin="5,4.966,0,0" TextWrapping="Wrap" Text="{Binding Path=Error}" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.Row="1"/>
		</Grid>
		<StackPanel DockPanel.Dock="Top">
			<TextBlock x:Name="txtStatus" TextWrapping="Wrap" Text="{Binding Path=PercentageCompleteFormattedString}" TextAlignment="Center"/>
			<ProgressBar x:Name="pbStatus" Height="21.96" Margin="20,0" Value="{Binding Path=PercentageComplete, Mode=OneWay}"/>
		</StackPanel>
		<DockPanel LastChildFill="False" DockPanel.Dock="Bottom">
			<StackPanel Width="Auto" Orientation="Horizontal" DockPanel.Dock="Right">
				<Button x:Name="btnDone" Content="Done" IsEnabled="False" IsCancel="True" Width="75" Margin="0,0,5,0"/>
			</StackPanel>
		</DockPanel>
		<ScrollViewer DockPanel.Dock="Top">
			<TextBox x:Name="txtLog" Background="Transparent" BorderThickness="0" IsReadOnly="True" IsReadOnlyCaretVisible="True" TextWrapping="Wrap"/>
		</ScrollViewer>
	</DockPanel>
</Window>
